﻿using SharpSoft.Data.Expressions;
using System;
using System.Collections.Generic;
using System.Text;

namespace SharpSoft.Data.GSQL
{
    /// <summary>
    /// 索引定义
    /// </summary>
    public class IndexDefine : IColumnDefine
    {
        /// <summary>
        /// 索引名称
        /// </summary>
        public VariableExpression Name { get; set; }
        public ListExpression Columns { get; set; }
        public IndexType Type { get; set; }
    }
    /// <summary>
    /// 索引类型
    /// </summary>
    public enum IndexType
    {
        /// <summary>
        /// 一般索引
        /// </summary>
        NORMAL,
        /// <summary>
        /// 唯一索引
        /// </summary>
        UNIQUE,
        /// <summary>
        /// 全文索引
        /// </summary>
        FULLTEXT,
        /// <summary>
        /// 空间索引
        /// </summary>
        SPATIAL
    }
}
